package cn.edu.scau.sec.zhangsan.composite.consist;

import java.util.HashSet;
import java.util.Set;

public abstract class ConsistTestCase {
	
	private int expect;
	private int add;
	private int added;
	
	private ConsistTestCase testCase;
	private Set<ConsistTestCase> childTestCases = new HashSet<ConsistTestCase>();
	
	public ConsistTestCase() {
	}
	public ConsistTestCase(int i, int j, int k) {
		expect =i;
		add = j;
		added = k;
	}
	
	public abstract boolean test();
	
	public ConsistTestCase getTestCase() {
		return testCase;
	}
	public void setTestCase(ConsistTestCase testCase) {
		this.testCase = testCase;
	}
	public Set<ConsistTestCase> getChildTestCases() {
		return childTestCases;
	}
	public void setChildTestCases(Set<ConsistTestCase> childTestCases) {
		this.childTestCases = childTestCases;
	}

	public int getExpect() {
		return expect;
	}

	public void setExpect(int expect) {
		this.expect = expect;
	}

	public int getAdd() {
		return add;
	}

	public void setAdd(int add) {
		this.add = add;
	}

	public int getAdded() {
		return added;
	}

	public void setAdded(int added) {
		this.added = added;
	}
	public void addChild(ConsistTestCase atomTestCase1) {
		childTestCases.add(atomTestCase1);
		
	}
}